package com.zyg.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zyg.pojo.Claee;
import com.zyg.pojo.Grade;
import org.apache.ibatis.annotations.*;

import java.util.List;


public interface ClaeeMapper extends BaseMapper<Claee> {



@Override
@Select("select claee_id,claee_name,grade_id from claee ${ew.customSqlSegment}")
@Results({
        @Result(property = "claeeId", column = "claee_id"),
        @Result(property = "claeeName", column = "claee_name"),
        @Result(property = "grade", column = "grade_id", javaType = Grade.class,
                one = @One(select = "com.zyg.dao.GradeMapper.getGradeById"))
})
List<Claee> selectList(IPage<Claee> page, @Param(Constants.WRAPPER) Wrapper<Claee> queryWrapper);










}
